import { createStore, applyMiddleware, combineReducers } from 'redux'
import saga from 'redux-saga'
import count from './reducer/count'
import list from './reducer/list'
import rootSaga from './saga'

const createSaga = saga()


let reducer = combineReducers({
    count,
    list
})

let store = createStore(reducer, applyMiddleware(createSaga))

createSaga.run(rootSaga)


export default store